//
//  DadaXiangqinVC.m
//  New
//
//  Created by 才诗琦 on 16/1/22.
//  Copyright © 2016年 www.lanou3g.com. All rights reserved.
//

#import "DadaXiangqinVC.h"

@interface DadaXiangqinVC ()

@end

@implementation DadaXiangqinVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    
    
    //左按钮
    self.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self action:@selector(fanHui:)] autorelease];
    self.navigationController.navigationBar.translucent = NO;
    //创建WebView
    UIWebView *wv = [[UIWebView alloc] initWithFrame:CGRectMake(0, -120, 375, 667)];
    
    //解析数据
    [wv loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.str]]];
    //添加父视图
    [self.view addSubview:wv];
    
    //管理内存
    [wv release];
    

}
//按钮实现方法
- (void)fanHui:(UIBarButtonItem *)fanhui
{
    [self.navigationController popViewControllerAnimated:YES];
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
